import http from '@/utils/http';

export function login(data) {
  return http({
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return http({
    url: '/u/info',
    method: 'get'
  })
}

export function logout() {
  return http({
    url: '/logout',
    method: 'get'
  })
}
